package com.ark.cloud.java.persistence.service.impl;


import com.ark.cloud.java.persistence.entity.DestoryEvent;
import com.ark.cloud.java.persistence.mapper.DestoryEventMapper;
import com.ark.cloud.java.persistence.service.DestoryEventService;
import com.ark.cloud.java.persistence.utils.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/1  下午3:59
 * @description
 */
@Service
public class DestoryEventServiceImpl implements DestoryEventService {

    @Autowired
    DestoryEventMapper destoryEventDao;

    @Override

    public void saveDestoryEventInfo(DestoryEvent destoryEvent) {
        // 设置UUID
        destoryEvent.setDestoryEventId(UUIDUtil.next());
        System.out.println("destoryEvent:"+destoryEvent);

        destoryEventDao.saveDestoryEventInfo(destoryEvent);

    }
}
